package com.develop.skwen.ourrules.basic;

import android.app.Activity;
import android.view.View;

/**
 * Created by skwen
 * on 18-4-24
 */

public interface Vu<P extends Presenter> {

    /**
     *
     * @param activity 宿主activity
     * @param <A> 上下文
     */
    <A extends Activity> void setActivity(A activity);

    /**
     *
      * @param presenter 业务类
     */
    void setPresenter(P presenter);

    /**
     * view初始化
     */
    void init();

    /**
     * 布局view
     * @return
     */
    View getView();
}
